<?php

function smarty_function_browse_gender($params, &$smarty) {
	$select = SilkForm::create_input_select(array("name" => "gender"));
	if( !isset( $params["selected_gender"] )) {
		$params["selected_gender"] = "";
	}
	
	$items = array("" => "Select gender", "F" => "Female", "M" => "Male");
	$select .= SilkForm::create_input_options(array("items" => $items, "selected_value" => $params["selected_gender"]));
	$select .= SilkForm::create_end_tag("select");
	return $select;	
}
?>